package com.xinyue.auto.bean;

/**
 * bean属性对象
 */
public class Attribute {
	/**属性名称*/
	private String name;
	/**属性类型*/
	private String type;
	/**注解类型*/
	private String[] annotations;
	/**属性描述信息*/
	private String desc;
	
	
	/**数据库字段名称*/
	private String dbName;
	/**是否是数据库字段*/
	private boolean dbField;
	/**字段类型：自定义类型，须数据库支持*/
	private String dbType;
	/**unique：是否唯一，默认不唯一*/
	private boolean unique;
	/**是否可为空，默认可以为空*/
	private boolean nullable;
	/**长度*/
	private String length;
	
	//getter setter
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String[] getAnnotations() {
		return annotations;
	}
	public void setAnnotations(String[] annotations) {
		this.annotations = annotations;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getDbName() {
		return dbName;
	}
	public void setDbName(String dbName) {
		this.dbName = dbName;
	}
	public boolean isDbField() {
		return dbField;
	}
	public void setDbField(boolean dbField) {
		this.dbField = dbField;
	}
	public String getDbType() {
		return dbType;
	}
	public void setDbType(String dbType) {
		this.dbType = dbType;
	}
	public boolean isUnique() {
		return unique;
	}
	public void setUnique(boolean unique) {
		this.unique = unique;
	}
	public boolean isNullable() {
		return nullable;
	}
	public void setNullable(boolean nullable) {
		this.nullable = nullable;
	}
	public String getLength() {
		return length;
	}
	public void setLength(String length) {
		this.length = length;
	}
}